package com.item.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.item.pojo.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserInfoMapper extends BaseMapper<UserInfo> {

    public UserInfo getLogin(@Param("username") String username, @Param("password") String password);

    public UserInfo getEmail(@Param("email") String email);

    public int getAddUser(@Param("user") UserInfo user);

    public int getUpdateUserPassword(@Param("mailbox") String mailbox, @Param("password") String password);
}
